import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        user: '',
    },
    // actions: {
    //     setUserAction({ commit }, data) {
    //         commit('setUserMutations', data);
    //     }
    // },
    mutations: {
        setUserMutations(state, data) {
            state.user = data;
        }
    }
})

export default store;